package com.eshidai.simple_springboot.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues="hello-queue")
public class Receiver {
	
	@RabbitHandler
	public void process(String rec) {
		System.out.println("Receiver : " + rec);
	}
}
